<style media="screen">
.fieldlist dd ins:first-child, .fieldlist dd input[type='text']:first-child {
    width: 90%;
}
</style>
<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Title')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-title" data-rule="required" class="form-control form-control" name="row[title]" type="text" value="{$row.title}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('选项')}:</label>
        <div class="col-xs-12 col-sm-8">
            <dl class="fieldlist" rel="{:count($row->options)}" data-listidx="0">
                <dd>
                    <ins>选项</ins>
                </dd>
                {volist name="$row->options" id="v" key="k"}
                <dd>
                    <input type="text" name="row[field][{$k}]" class="form-control" id="field-0" value="{$v.title}" size="40">
                    <span class="btn btn-sm btn-danger btn-remove"><i class="fa fa-times"></i></span>
                </dd>
                {/volist}
                <dd><a href="javascript:;" class="append-option btn btn-sm btn-success"><i class="fa fa-plus"></i> 追加</a></dd>
            </dl>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
